//
//  DXWYouxiCollectionViewLayout.m
//  pandaTV
//
//  Created by 淡馨慰 on 16/8/21.
//  Copyright © 2016年 淡馨慰. All rights reserved.
//

#import "DXWYouxiCollectionViewLayout.h"

@implementation DXWYouxiCollectionViewLayout

- (void)prepareLayout
{
    [super prepareLayout];
//    UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc]init];
    NSInteger col = 3;
    CGFloat itemW = ([UIScreen mainScreen].bounds.size.width - 4 * dxw_margin_10) / col - 0.0001;
    CGFloat itemH = 1.5 * itemW ;
    self.itemSize = CGSizeMake(itemW, itemH);
    //    layout.minimumLineSpacing = dxw_margin_10;
    //    layout.minimumInteritemSpacing = dxw_margin_10;
    self.sectionInset = UIEdgeInsetsMake(dxw_margin_10, dxw_margin_10, dxw_margin_10, dxw_margin_10);
}


@end
